package com.cyn.controller.handler;


import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class Test2 {

    public static void main(String[] args) throws IOException {

        String filePath = "C:\\Users\\lenovo\\Desktop\\阜阳\\ddf.txt";
        StringBuilder content = new StringBuilder();

        try {
            BufferedReader br = new BufferedReader(new FileReader(filePath));
            String line;

            while ((line = br.readLine()) != null) {
                content.append(line);
                content.append(System.lineSeparator());
            }

            br.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

        System.out.println(content.toString());
    }


}
